
async function main() {
	// get the client
	const mysql = require("mysql2")
	// create the connection
	let con = mysql.createConnection(
		{host: "localhost", user: "root", database: "root", password: "root"}
	).promise()
	con.query("SELECT * from data").then(function () {
		
	})
	console.log(con)
}
main().catch(console.error)